import matplotlib.pyplot as plt

def plot_waveform(y, sr):
    """绘制波形图"""
    plt.plot(y)
    plt.xlabel('Time')
    plt.ylabel('Amplitude')
    plt.show()